package com.dhcc.bpm.business.papc.mapper;

import com.dhcc.bpm.business.papc.entity.ComParm;
import com.dhcc.bpm.business.papc.vo.ComParmVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 中间业务系统参数表  Mapper 接口
 *
 * @author liuzhao
 * @since 2020-05-15
 */
public interface ComParmMapper extends BaseMapper<ComParm> {

	/**
	 * @param page
	 * @param comParm
	 * @return java.util.List<com.dhcc.bpm.business.papc.vo.ComParmVO>
	 * @Description 自定义分页
	 * @Author liuzhao
	 * @Date 2020/5/25 14:45
	 **/
	List<ComParmVO> selectComParmPage(IPage page, ComParmVO comParm);

	/**
	 * @param id
	 * @return com.dhcc.bpm.business.papc.entity.ComParm
	 * @Description 详情
	 * @Author liuzhao
	 * @Date 2020/5/25 14:46
	 **/
	ComParm selectComParmById(Long id);

	/**
	 * @param comParm
	 * @return int
	 * @Description 新增
	 * @Author liuzhao
	 * @Date 2020/5/25 14:46
	 **/
	int save(ComParm comParm);

	/**
	 * @param comParm
	 * @return int
	 * @Description 更新
	 * @Author liuzhao
	 * @Date 2020/5/25 14:47
	 **/
	int update(ComParm comParm);

	/**
	 * @param ids
	 * @return int
	 * @Description 删除
	 * @Author liuzhao
	 * @Date 2020/5/25 14:48
	 **/
	int deleteComParmByIds(String[] ids);

	/**
	 * @param comParm
	 * @return java.util.List<com.dhcc.bpm.business.papc.entity.ComParm>
	 * @Description 查询全部信息
	 * @Author liuzhao
	 * @Date 2020/5/25 14:48
	 **/
	@Select("select * from zjyw_com_parm")
	List<ComParm> selectComParmAll(ComParm comParm);
}
